import { ASSIGNWORK } from './actionType'
 const defaultState ={
    data:''
}

const reducer = ( state=defaultState,action)=>{
    switch(action.type){
        case ASSIGNWORK:
            return {
                data:action.data
            }
        default :
            return state
    }

}

export default reducer